package com.sptpc.drink.service;

import com.sptpc.drink.pojo.Category;

import java.util.List;

public interface CategoryService {
    /**
     *
     * @param id
     * @return
     */
    Category queryById(Long id);
    //模糊查询
    List<Category> queryByName(String name);

    List<Category> queryAll();

    /**
     *
     * @param category
     */
    void insert(Category category);

    void delete(Long id);

    void update(Category category);
}
